003 configuring communications
好吧,我们回来了,我们仍在使用先进的 HDMI,现在我们将研究如何使这个东西能够模拟或几乎任何类型的吸引力,看看我们可能已经连接了。
All right we are back and we are still working with advanced HDMI and now we're going to be looking at how to make this thing talk to emulate or pretty much any kind of appeal see we might have hooked up.
因此,首先我将继续让 PLCC 在后台运行,以便启动我们的链接。
So to begin with I'm going to go ahead and get our PLCC running in the background so I'm going to fire up our links.
让我们开始模拟运行,让我们加载我们的项目。
Let's get emulate running let's get our projects loaded.
好的。
All right.
我们将像往常一样将我们的站设置为 1,然后我们将加载 com 零来,并且我们已经配置了来零来,因此它将 COM 端口连接到该端口,因为我们不必再对此执行任何操作。
We'll set our station to one as usual and then we will get our com zero come loaded and we've already configured come zero come so it's connecting COM port to the port for we don't have to do anything with this anymore.
我们所要做的就是加载并最小化它,它将在后台为我们连接这两个端口,并允许我们进行对话和模拟。
All we have to do is loaded up and minimize it and it's going to connect those two come ports for us in the background and allow us to talk to emulate.
所以我们现在在这一切方面都做得很好。
So we're good on all of that right now.
也正是这样我们的程序才能运行。
Also just so we have our program running.
我将继续加载程序。
I'm going to go ahead and load the program up.
为了可见性,让我们最大化它。
Let's maximize this for visibility sake.
上线并让我们的人员进入运行模式。
Go online and put our people see into run mode.
然后我可以在这里进行我们的审查,我们将切换我们将所有设备置于自动模式位,然后我将切换我们的系统启动。
And then I can go over here into our review to have and we're going to toggle Our put all devices into auto mode bit and then I'm going to toggle our system start.
因此,到目前为止,我们在后台有一个实时运行的系统,我们可以连接到该系统并查看一些数据,以确保我们正在运行。
So as of right now we have a live running system in the background that we can connect to and look at some data for just to be sure that we're running.
那么我们如何与这个东西联系起来呢?
So how do we get connected with this thing.
让我们回到高级 HDMI,我们将在左侧扩展我们的工具箱。
Let's go back into advanced HDMI and we're going to expand our tool box over on the left.
当我们向上滚动时,我们会看到高级 HDMI 驱动程序组件,它就在该窗口顶部附近。
And when we do if we scroll up and there we're going to see that we've got advanced HDMI driver components and that's right up near the top of this window.
好吧,我们有以太网 Modbus 臂 Ron OPEC 模拟器,可以与双 CAD CAM 进行通信。
Well we've got Ethernet Modbus arm Ron OPEC simulator comm whatever that is twin CAD CAM.
其中很多我从未听说过,但您可以看到我们有一些不同的选项可以通过不同的格式、接口和协议与不同的 PC 进行通信。
A lot of these I've never heard of but you can see we've got a handful of different options to communicate with different PCs via different formats and interfaces and protocols.
您还会注意到,这并不是像我们所看到的那样详尽的列表,例如 Seymour,例如 Seymour 是一个专业开发的 HDMI 套件,旨在通过许多不同的策略直接进行开箱即用的通信。
What you're also going to notice is this is not nearly as exhaustive list as we've seen with say Seymour for instance Seymour is a professionally developed HDMI suite which is built to communicate out of the box directly with a lot of different policies.
这个确实不是很好,它与它所做的事情进行通信,并且它使用一些真正通用的协议,例如 Modbus ADF 1 和 OPC。
This one really is not it's good that it communicates with the things that it does and it uses some really generic protocols like Modbus ADF 1 and OPC.
因此,对于那些你可能可以与任何东西进行交流的人,你只是无法直接与这些东西进行交流。
So with those you probably can communicate with just about anything you just won't be able to communicate directly with those things.
所以没关系。
So that's OK.
这对我们来说已经足够好了。
It's good enough for us.
有了这个想法,我们将能够直接与仿真进行通信。
And with this idea of one we're going to be able to communicate directly with emulate.
因此,建立我们的通信生活是美好的,我们真正需要做的就是将我们将要使用的驱动程序带到这里。
So life is good to set up our communications all we really need to do is take the drivers here that we're going to use.
将其拖过并放下。
Drag it over and drop it.
在本例中,我们将使用 DFI。
And in this case we're going to be using the DFI one.
因此,我只需将其拖到此处,然后将其放下,您就可以看到它出现在此处,我已经有了一对一的想法。
So I'm just going to drag it over here drop it and you can see it appears down here I've got this idea of one come one.
然后在我们属性的右侧,我们必须设置这个东西并输入一些信息以使其与我们的仿真进行通信。
And then over here on the right in our properties this is where we're going to have to set this thing up and put some information in to get it to communicate with our emulate.
好消息是我们确实没有太多需要设置的东西。
And the good news is we really don't have much to set up.
我们希望它位于 C R C 中,以便我们检查某种类型,然后检查我们的 com 端口。
We want this to be in C R C for our check some type and then our com port.
我们将把它设置为 come for 而不是 come one。
We're going to set that up as come for instead of come one.
因此,只要我们将波特率设置为自动检查某种类型的 CRC,并且通信端口已到来,我们就应该没问题。
So as long as we've got this set up baud rate is auto check some type of CRC and comm port is come for we should be all right.
这就是通信的真正目的。
So really that's it for communications.
这非常简单。
And that was pretty simple.
在下一讲中,我们将在屏幕上放置一些控件,并测试我们的通信,以确保我们确实将信息发送到正在运行的 PLCC 中并使某些事情发生。
In the next lecture we're going to drop some controls on the screen and we're going to test our communications to make sure that we actually send information into our running PLCC and make some things happen.
所以我们就到此结束本次讲座,下期再见
So we'll wrap this lecture here and I'll see you in the next cheers